<?php
	$writeBody .= "
		<div class='navigation'>
		  <div id='menuBtn'>Menu...</div>
		  <div id='tableList'>	
	    <?php 
	      $"."currentNavTable = '$tableName';
	      require_once('navlist.php');
	    ?>\n";
	$writeBody .= "\t  </div> <!-- end #tableList -->";
/*
	for ($i=0; $i < sizeof($tableArray);$i++) {
			$selectedClass = "";
			if ($tableArray[$i] == $tableName) {$selectedClass = "currentTable";}
			$writeBody .= "<div class='otherTable $selectedClass'><a href='".$tableArray[$i]."_list.php'>".$displayNameArray[$tableArray[$i]]."</a></div>\n";
	}
*/
	//$writeBody .= print_r($tableArray);
	
	// Allow for overwriting of page and title vars
	$currPage = (strlen($currPage) > 0) ? $currPage : $tableName."_list.php";
	$currTitle = (strlen($currTitle) > 0) ? $currTitle : $displayNameArray[$tableName];
	
	$writeBody .= "
		  <div class='siteName'><a href='http://$siteName/'>$siteName</a></div>
	    <div id='currentTableTitle'><a href='$currPage'>$currTitle</a></div>
	    <div id='listBtns'>
	      <div id='listViewBtn'><img src='images/list-icon.gif' alt='List View' /></div>
	      <div id='gridViewBtn'><img src='images/grid-icon.gif' alt='Grid View' /></div>
	    </div>
	    <div id='io-cms'>Powered by <a href='mailto:info@indooroutdoorweb.com'>IO_CMS</a> &copy;".date("Y")."</div>
	  </div><!-- End .navigation -->";
?>

